
// lazyload config

angular.module('app')
    /**
   * jQuery plugin config use ui-jq directive , config the js and css files that required
   * key: function name of the jQuery plugin
   * value: array of the css js file located
   */
  .constant('JQ_CONFIG', {
      easyPieChart: ['vendor/jquery/charts/easypiechart/jquery.easy-pie-chart.js'],
      sparkline: ['vendor/jquery/charts/sparkline/jquery.sparkline.min.js'],
      plot: ['vendor/jquery/charts/flot/jquery.flot.min.js',
                          'vendor/jquery/charts/flot/jquery.flot.resize.js',
                          'vendor/jquery/charts/flot/jquery.flot.tooltip.min.js',
                          'vendor/jquery/charts/flot/jquery.flot.spline.js',
                          'vendor/jquery/charts/flot/jquery.flot.orderBars.js',
                          'vendor/jquery/charts/flot/jquery.flot.pie.min.js'],
      slimScroll: ['vendor/jquery/slimscroll/jquery.slimscroll.min.js'],
      sortable: ['vendor/jquery/sortable/jquery.sortable.js'],
      nestable: ['vendor/jquery/nestable/jquery.nestable.js',
                          'vendor/jquery/nestable/nestable.css'],
      filestyle: ['vendor/jquery/file/bootstrap-filestyle.min.js'],
      slider: ['vendor/jquery/slider/bootstrap-slider.js',
                          'vendor/jquery/slider/slider.css'],
      chosen: ['vendor/jquery/chosen/chosen.jquery.min.js',
                          'vendor/jquery/chosen/chosen.css'],
      TouchSpin: ['vendor/jquery/spinner/jquery.bootstrap-touchspin.min.js',
                          'vendor/jquery/spinner/jquery.bootstrap-touchspin.css'],
      wysiwyg: ['vendor/jquery/wysiwyg/bootstrap-wysiwyg.js',
                          'vendor/jquery/wysiwyg/jquery.hotkeys.js'],
      dataTable: ['vendor/jquery/datatables/jquery.dataTables.min.min.js',
                          'vendor/jquery/datatables/dataTables.bootstrap.js',
                          'vendor/jquery/datatables/dataTables.bootstrap.min.css'],
      vectorMap: ['vendor/jquery/jvectormap/jquery-jvectormap.min.js',
                          'vendor/jquery/jvectormap/jquery-jvectormap-world-mill-en.js',
                          'vendor/jquery/jvectormap/jquery-jvectormap-us-aea-en.js',
                          'vendor/jquery/jvectormap/jquery-jvectormap.css'],
      footable: ['vendor/jquery/footable/footable.all.min.js',
                          'vendor/jquery/footable/footable.core.css'],
      wdatePicker: ['vendor/jquery/calendar/WdatePicker.js',
                          'vendor/jquery/calendar/skin/WdatePicker.css'],
      bootstrapTable: ['vendor/jquery/bootstrapTable/bootstrap-table.js',
                          'vendor/jquery/bootstrapTable/bootstrap-table.css'],
      angularFileUpLoad: ['vendor/modules/angular-file-upload/angular-file-upload.js'],

      LoadReport: ['vendor/jquery/calendar/WdatePicker.js',
                        'vendor/jquery/calendar/skin/WdatePicker.css',
                        'WFRes/_Content/themes/ligerUI/Aqua/css/ligerui-all.min.css',
                        'WFRes/_Content/themes/ligerUI/ligerui-icons.css',
                        'WFRes/_Content/themes/H3Default/H3-ReportTemplate.css',
                        'WFRes/_Scripts/jquery/jquery.lang.js',
                        'vendor/ligerUI/ligerui.all.js',
                        'WFRes/_Scripts/ReportDesigner/ReportViewManager.js'
      ],
      LoadReportFiters: [
                                'css/H3Report/Reporting/ReportView.css',
                                'css/H3Report/jquery.gritter.css',
                                'js/H3Report/jquery.gritter.min.js',
                                'js/H3Report/H3.plugins.system.js',
                                'js/H3Report/bootstraptable/bootstrap-datetimepicker.js',
                                'js/H3Report/bootstraptable/jquery.nicescroll.min.js',
                                'js/H3Report/bootstraptable/bootstrap-datetimepicker.zh-CN.js',
                                'js/H3Report/bootstraptable/bootstrap-table.js',
                                'js/H3Report/bootstraptable/bootstrap-table-zh-CN.js',                                                         
                                //'js/H3Report/dataTables/dataTables.bootstrap.js',
                                'vendor/jquery/datatables/jquery.dataTables.min.min.js',
                                //'js/H3Report/Form/BaseControl.js',
                                //'js/H3Report/Form/ControlManager.js',
                                // 'js/H3Report/Form/SmartForm.js',
                                //'js/H3Report/Form/FormControls.js',
                                //'js/H3Report/Form/Controls/FormUser.js',
                                'js/H3Report/echart/echarts.js',
                                'js/H3Report/Reporting/Report/ReportBase.js',
                                'js/H3Report/Reporting/ReportViewManagerPc.js',
                                'js/H3Report/bootstrap-multiselect/bootstrap-multiselect.js',
                                'js/H3Report/H3Chart/ChartBase.js',
                                'js/H3Report/H3Chart/excanvas.min.js',
                                'js/H3Report/H3Chart/Chart.js',                             
                                'js/H3Report/html2canvas.js'
      ],
      LoadReportPage: [
      ],
      //流程状态图
      workflowdocument: ['WFRes/assets/stylesheets/themes.min.css',
                            'WFRes/_Content/designer/css/designer.css',
                            'WFRes/_Scripts/jquery/jquery.lang.js',
                            'WFRes/_Scripts/designer/Line.js',
                            'WFRes/_Scripts/designer/misc.js',
                            'WFRes/_Scripts/designer/Activity.js',
                            'WFRes/_Scripts/designer/Workflow.js',
                            'WFRes/_Scripts/designer/ActivityModel.js',
                            'WFRes/_Scripts/designer/ActivityDrag.js',
                            'WFRes/_Scripts/designer/WorkflowDocument.js',
                            'vendor/jquery/workflowdocument/loader.js'
      ],
      SheetWorkflow: ['WFRes/_Content/themes/ligerUI/Aqua/css/ligerui-all.min.css',
                        'WFRes/assets/stylesheets/ReportUser.css?v=20190125612',
                         'WFRes/assets/stylesheets/SheetUserPortal.css',
                        'WFRes/_Scripts/jquery/jquery.lang.js',
                        'WFRes/_Scripts/ligerUI/ligerui.all.min.js',
                        'WFRes/_Scripts/MvcSheet/SheetControls.js',
                        'WFRes/_Scripts/MvcSheet/MvcSheetUI.js',
                        'WFRes/_Scripts/MvcSheet/Controls/SheetWorkflow.js'],
    //yuap_20180724_流程绩效统计js                        
    SheetWorkflowPCQ: ['WFRes/_Content/themes/ligerUI/Aqua/css/ligerui-all.min.css',
                       'WFRes/assets/stylesheets/ReportUser.css?v=2019012512',
                        'WFRes/assets/stylesheets/SheetUserPortal.css',
                       'WFRes/_Scripts/jquery/jquery.lang.js',
                       'WFRes/_Scripts/ligerUI/ligerui.all.min.js',
                       'WFRes/_Scripts/MvcSheet/SheetControls.js',
                       'WFRes/_Scripts/MvcSheet/MvcSheetUI.js',
                       'report/js/SheetWorkflowPCQ.js'],
      SheetUser: [      'WFRes/_Content/themes/ligerUI/Aqua/css/ligerui-all.min.css',
                        'WFRes/assets/stylesheets/ReportUser.css?v=2019012517',
                        'WFRes/assets/stylesheets/SheetUserPortal.css',
                        'WFRes/_Scripts/jquery/jquery.lang.js',
                        'WFRes/_Scripts/ligerUI/ligerui.all.min.js',
                        'WFRes/_Scripts/MvcSheet/SheetControls.js',
                        'WFRes/_Scripts/MvcSheet/MvcSheetUI.js',
                        'WFRes/_Scripts/MvcSheet/Controls/SheetUser.js']
  })
  .constant('ControllerConfig', {
      Organization: {
          LoginIn: "Organization/LoginIn",
          LoginOut: "Organization/LoginOut",
          GetCurrentUser: "Organization/GetCurrentUser",//获取当前登录用户
          GetUserInfo: "PersonalInfo/GetUserInfo"//获取用户信息（传入用户ID）
      },
      HomePage: {
          RenderTemplateToPage: "HomePage/RenderTemplateToPage",//加载页面模板
          RenderTemplateToObj: "HomePage/RenderTemplate",//加载obj模板
          RemoveWebPartFromPage: "PortalHandler/RemoveWebPartFromPage",//移除首页部件
          GetWebPartInstEditValue: "PortalHandler/GetWebPartInstEditValue",//获取设置部件属性的初始值
          PageWebPartSort: "PortalHandler/PageWebPartSort"//拖拽插件到其他位置
      },
      WorkItem: {
          GetDefaultUnfinishWorkItems: "WorkItem/GetDefaultUnfinishWorkItems",//获取首页的待办任务
          GetWorkCount: "WorkItem/GetWorkCount",//获取待办，待阅，我的流程 数量
          GetUnfinishWorkItems: "WorkItem/GetUnfinishWorkItems",//待办          
          GetFinishWorkItems: "WorkItem/GetFinishWorkItems",//已办
          GetUnReadWorkItems: "CirculateItem/GetUnReadWorkItems",//待阅
          GetReadWorkItems: "CirculateItem/GetReadWorkItems",//已阅
          QueryParticipantWorkItems: "WorkItem/QueryParticipantWorkItems",//查询任务
          QueryUnfinishedWorkItem: "WorkItem/QueryUnfinishedWorkItem",//进行中的任务
          MyUnfinishedWorkItemByGroup: "WorkItem/MyUnfinishedWorkItemByGroup",//我的待办-分组
          MyUnfinishedWorkItemByBatch: "WorkItem/MyUnfinishedWorkItemByBatch",//我的待办-批量
          QueryElapsedWorkItem: "WorkItem/QueryElapsedWorkItem",//超时的任务
          QueryAgentWorkItem: "WorkItem/QueryAgentWorkItem",//委托任务
          HandleWorkItemByBatch: "WorkItem/HandleWorkItemByBatch",//批量处理任务

          GetMyWorkItem: "WorkItem/GetMyWorkItem"//应用中心——任务列表
      },
      CirculateItem: {
          ReadCirculateItemsByBatch: "CirculateItem/ReadCirculateItemsByBatch"//批量已阅
      },
      Workflow: {
          QueryWorkflowNodes: "Workflow/QueryWorkflowNodes",
          queryWorkflowNodesByParentCode: "Workflow/queryWorkflowNodesByParentCode",
          ChangeFrequence: "Workflow/ChangeFrequence",
          GetWorkflowInfo: "Workflow/GetWorkflowInfo"//获取发起状态流程状态信息
      },
      Instance: {
          QueryInstance: "Instance/QueryInstance",//查询流程实例
          QueryMyInstance: "Instance/QueryMyInstance",//我的流程
          QueryUnfinishedInstance: "Instance/QueryUnfinishedInstance",//进行中的流程
          QueryElapsedInstance: "Instance/QueryElapsedInstance",//超时的流程
          QueryExceptionInstance: "Instance/QueryExceptionInstance",//异常的流程

          //以下均为  导出流程数据部分
          ChangeWorkflowCode: "Instance/ChangeWorkflowCode",//流程模板改变,获取查询条件的数据项
          ExportDataItems: "Instance/ExportDataItems",//流程模板改变,获取可查询的数据项
          QueryInstanceData: "Instance/QueryInstanceData",//查询流程数据
          ExportDataValidateWFInsAdmin: "Instance/ExportDataValidateWFInsAdmin",//导出验证
          ExportIntanceData: "Instance/ExportIntanceData"//导出
      },
      InstanceDetail: {
          GetInstanceStateInfo: "InstanceDetail/GetInstanceStateInfo",//根据InstanceID获取流程状态信息
          GetUrgeInstanceInfo: "InstanceDetail/GetUrgeInstanceInfo",//根据InstanceID获取催办历史信息
          GetUrgeWorkItemInfo: "InstanceDetail/GetUrgeWorkItemInfo",//根据WorkItemID获取催办信息
          AddUrgeInstance: "InstanceDetail/AddUrgeInstance",//添加一个催办信息
          GetInstanceUserLog: "InstanceDetail/GetInstanceUserLog",//获取流程实例的用户操作日志
          GetAdjustActivityInfo: "InstanceDetail/GetAdjustActivityInfo",//获取调整活动的活动节点
          GetActivityChangeInfo: "InstanceDetail/GetActivityChangeInfo",//活动节点改变时事件
          ActivateActivity: "InstanceDetail/ActivateActivity",//激活活动
          CancelActivity: "InstanceDetail/CancelActivity",//取消活动
          AdjustActivity: "InstanceDetail/AdjustActivity",//调整活动参与者
          CancelInstance: "InstanceDetail/CancelInstance",//取消流程实例
          ActivateInstance: "InstanceDetail/ActivateInstance",//激活流程实例
          RemoveInstance: "InstanceDetail/RemoveInstance"//删除流程实例
      },
      Agents: {
          GeyAgencyTable: "QueryAgent/GeyAgencyTable",
          GetAgency: "QueryAgent/GetAgency",
          AddAgency: "QueryAgent/AddAgency",
          RemoveAgency: "QueryAgent/RemoveAgency"
      },
      PersonalInfo: {
          GetUserInfo: "PersonalInfo/GetUserInfo",//获取个人信息
          UpdateUserInfo: "PersonalInfo/UpdateUserInfo",//设置个人信息
          SetPassword: "PersonalInfo/SetPassword",//修改密码
          GetFrequentlyUsedComment: "PersonalInfo/GetFrequentlyUsedComment",//获取单个常用意见
          GetFrequentlyUsedCommentsByUser: "PersonalInfo/GetFrequentlyUsedCommentsByUser",//获取用户常用意见
          AddFrequentlyUsedComment: "PersonalInfo/AddFrequentlyUsedComment",//新增常用意见
          RemoveFrequentlyUsedComment: "PersonalInfo/RemoveFrequentlyUsedComment",//删除常用意见

          AddSignature: "OrgUser/AddSignature",//添加签章
          GetSignaureList: "OrgUser/GetSignaureList",//获取用户签章
          SetDefaultSignature: "OrgUser/ChangeSignaureDefault",//设置默认签章
          RemoveSignature: "OrgUser/RemoveSignaure"//删除签章
      },
      RunBizQuery: {
          EditBizObjectSheet: "RunBizQuery/EditBizObjectSheet",
          GetBizQueryViewData: "RunBizQuery/GetBizQueryViewData"
      },
      WebParts: {
          Save: "PortalHandler/SaveWebPart", //保存部件


          GetDataModelData: "PortalAdminHandler/GetDataModelData",//获取数据模型部件 数据

          ChangeWorkflowCode: "PortalAdminHandler/ChangeWorkflowCode"//DataModel 获取数据模型的数据项
      }
  })
  .config(['$ocLazyLoadProvider', function ($ocLazyLoadProvider) {
      $ocLazyLoadProvider.config({
          debug: true,
          events: true,
          modules: [
              {
                  name: 'ngGrid',
                  files: [
                      'vendor/modules/ng-grid/ng-grid.min.js',
                      'vendor/modules/ng-grid/ng-grid.min.css',
                      'vendor/modules/ng-grid/theme.css'
                  ]
              },
              {
                  name: 'ui.select',
                  files: [
                      'vendor/modules/angular-ui-select/select.min.js',
                      'vendor/modules/angular-ui-select/select.min.css'
                  ]
              },
              {
                  name: 'angularFileUpload',
                  files: [
                    'vendor/modules/angular-file-upload/angular-file-upload.min.js'
                  ]
              },
              {
                  name: 'ui.calendar',
                  files: ['vendor/modules/angular-ui-calendar/calendar.js']
              },
              {
                  name: 'ngImgCrop',
                  files: [
                      'vendor/modules/ngImgCrop/ng-img-crop.js',
                      'vendor/modules/ngImgCrop/ng-img-crop.css'
                  ]
              },
              {
                  name: 'angularBootstrapNavTree',
                  files: [
                      'vendor/modules/angular-bootstrap-nav-tree/abn_tree_directive.js',
                      'vendor/modules/angular-bootstrap-nav-tree/abn_tree.css'
                  ]
              },
              {
                  name: 'toaster',
                  files: [
                      'vendor/modules/angularjs-toaster/toaster.js',
                      'vendor/modules/angularjs-toaster/toaster.css'
                  ]
              },
              {
                  name: 'textAngular',
                  files: [
                      'vendor/modules/textAngular/textAngular-sanitize.min.js',
                      'vendor/modules/textAngular/textAngular.min.js'
                  ]
              },
              {
                  name: 'vr.directives.slider',
                  files: [
                      'vendor/modules/angular-slider/angular-slider.min.js',
                      'vendor/modules/angular-slider/angular-slider.css'
                  ]
              },
              {
                  name: 'com.2fdevs.videogular',
                  files: [
                      'vendor/modules/videogular/videogular.min.js'
                  ]
              },
              {
                  name: 'com.2fdevs.videogular.plugins.controls',
                  files: [
                      'vendor/modules/videogular/plugins/controls.min.js'
                  ]
              },
              {
                  name: 'com.2fdevs.videogular.plugins.buffering',
                  files: [
                      'vendor/modules/videogular/plugins/buffering.min.js'
                  ]
              },
              {
                  name: 'com.2fdevs.videogular.plugins.overlayplay',
                  files: [
                      'vendor/modules/videogular/plugins/overlay-play.min.js'
                  ]
              },
              {
                  name: 'com.2fdevs.videogular.plugins.poster',
                  files: [
                      'vendor/modules/videogular/plugins/poster.min.js'
                  ]
              },
              {
                  name: 'com.2fdevs.videogular.plugins.imaads',
                  files: [
                      'vendor/modules/videogular/plugins/ima-ads.min.js'
                  ]
              }
          ]
      });
  }])
;